import { createSlice } from "@reduxjs/toolkit";

const countSlice=createSlice({
    name:"count",
    initialState:{
        count:0
    },
    reducers:{
        changeCount(state,actions){
            state.count+=actions.payload
        },
    }

})

export const {changeCount}=countSlice.actions
export default countSlice.reducer